package codeTop;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

public class Test {
    public static void main(String[] args) {
        List<Long> ruleIds = List.of(110L, 68L, 186L);
        Map<Long, Integer> orderMap =
            IntStream.range(0, ruleIds.size())
                .boxed()
                .collect(Collectors.toMap(
                    ruleIds::get,
                    i -> i + 1
                ));
        System.out.println(orderMap);
    }
}
